package com.pet.platform.mapper;

import com.pet.platform.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

@Mapper
public interface CommentMapper {
    Comment findById(@Param("id") Long id);
    
    List<Comment> findList(Map<String, Object> params);
    
    Long count(Map<String, Object> params);
    
    void insert(Comment comment);
    
    void update(Comment comment);
    
    void delete(@Param("id") Long id);
    
    List<Comment> findByPostId(@Param("postId") Long postId);
} 